import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;
import java.io.Writer;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86136
 * Date: 2025-04-29
 * Time: 18:55
 */
public class Demo6 {
    public static void main(String[] args) {
        try (Writer writer = new FileWriter("./output.txt",true)) {
            BufferedWriter bufferedWriter = new BufferedWriter(writer);
            bufferedWriter.write("hello writer");
            bufferedWriter.flush();
        } catch (IOException e) {
            e.printStackTrace();
        } ;
    }
}
